import request from '@/utils/request'

// 查询项目合同列表
export function listProjectContract(query) {
  return request({
    url: '/project/projectContract/list',
    method: 'get',
    params: query
  })
}

// 查询项目合同详细
export function getProjectContract(contractId) {
  return request({
    url: '/project/projectContract/' + contractId,
    method: 'get'
  })
}

// 新增项目合同
export function addProjectContract(data) {
  return request({
    url: '/project/projectContract',
    method: 'post',
    data: data
  })
}

// 修改项目合同
export function updateProjectContract(data) {
  return request({
    url: '/project/projectContract',
    method: 'put',
    data: data
  })
}

// 删除项目合同
export function delProjectContract(contractId) {
  return request({
    url: '/project/projectContract/' + contractId,
    method: 'delete'
  })
}
